﻿<template>
  <div class="banner_container">
    <img src="../../static/img/loading_index.jpg" alt="">
  </div>
</template>
<script>
  import '../../static/css/reset.css';
  import $ajax from "../common/common_ajax/common_ajax.js";
  import MintUI from 'mint-ui';
  import common from "../common/common.js";
//  import axios from 'axios';
//  axios.defaults.headers.common['Content-Type'] = 'application/json;charset=UTF-8';
//  Vue.prototype.$http = axios;
  Vue.use(MintUI);
  Vue.use($ajax);
export default {
  name: 'banner',
  data () {
    return {

    }
  },
  created:function(){

  },
  mounted: function () {
    let user_id = localStorage.getItem("user_id");
    console.log("user_id");
//    mui.plusReady(function(){
    setTimeout(()=>{
      if(!user_id){//登陆过
        common.jump({
          url:'./app_login.html',
          id:"app_login.html"
        })
      }else{//没有登陆过
        common.jump({
          url:"./app_index.html",
          id:"app_index.html"
        })
      }
    },1000);
//    })
  },
  methods: {

   },
  components: {
  }
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style lang="scss" scoped>
@import "./sass/banner_view.scss";
</style>

